<template>
  <div id="framework">
    <div class="framework-wrapper">
      <router-view name="default" />
    </div>
  </div>
</template>

<script>
  export default {}
</script>

<style lang="less">
  #app {
    /* 如果同时折叠 */
    &.nav-collapse.sub-nav-collapse {
      #framework {
        left: 62px;
      }
    }

    /* 如果只是单独折叠 */
    &.sub-nav-collapse {
      #framework {
        left: 210px;
      }
    }

    &.nav-collapse {
      #framework {
        left: 212px;
      }
    }
  }

  /* 默认都不折叠 */
  #framework {
    position: absolute;
    top: 60px;
    left: 360px;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: none;
    transition: all .2s;

    .framework-wrapper {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      padding: 20px 10px 0 10px;
      transition: all .2s;

      h2 {
        margin: 0;
        margin-bottom: 20px;
        color: #000;
        font-size: 18px;
        font-weight: normal;
      }
    }
  }
</style>
